function create_text_block(id, text)
	{
		initRTE("/js/cbrte/images/", "/js/cbrte/", "", true);
		updateRTEs();
		var rte = new richTextEditor("text"+id);
		rte.html = text;
		
		//enable all commands for demo
		rte.cmdFormatBlock = true;
		rte.cmdFontName = true;
		rte.cmdFontSize = true;
		rte.cmdIncreaseFontSize = false;
		rte.cmdDecreaseFontSize = false;
		
		rte.cmdBold = true;
		rte.cmdItalic = true;
		rte.cmdUnderline = true;
		rte.cmdStrikethrough = false;
		rte.cmdSuperscript = false;
		rte.cmdSubscript = false;
		
		rte.cmdJustifyLeft = true;
		rte.cmdJustifyCenter = true;
		rte.cmdJustifyRight = true;
		rte.cmdJustifyFull = true;
		
		rte.cmdInsertHorizontalRule = false;
		rte.cmdInsertOrderedList = false;
		rte.cmdInsertUnorderedList = false;
		
		rte.cmdOutdent = false;
		rte.cmdIndent = false;
		rte.cmdForeColor = true;
		rte.cmdHiliteColor = true;
		rte.cmdInsertLink = true;
		rte.cmdInsertImage = false;
		rte.cmdInsertSpecialChars = false;
		rte.cmdInsertTable = false;
		rte.cmdSpellcheck = false;
		
		rte.cmdCut = false;
		rte.cmdCopy = false;
		rte.cmdPaste = false;
		rte.cmdUndo = false;
		rte.cmdRedo = false;
		rte.cmdRemoveFormat = false;
		rte.cmdUnlink = true;
		
		rte.toggleSrc = false;
		
		rte.width = '100%';
		rte.height = 180;
		
		rte.build();
	}

function create_table_block(id, text)
{
	initRTE("/js/cbrte/images/", "/js/cbrte/", "", true);
	updateRTEs();
	var rte = new richTextEditor("table"+id);
	rte.html = text;
	
	//enable all commands for demo
	rte.toolbar1 = false;
	rte.toolbar2 = false;
	
	rte.toggleSrc = false;
	
	rte.width = '100%';
	rte.height = 240;
	
	rte.build();
}
